Skip to content

Conversation

nikophil
Copy link

@nikophil nikophil commented Oct 3, 2025

Q A
Type bug
BC Break no
Fixed issues #1502

Summary

When a migration command runs, the DependencyFactory is frozen, but never "unfrozen", so it cannot be run several times programmatically, like we would need in Foundry.

I propose to unfreeze at the end of all commands, but I'd be also OK to only do it in doctrine:migration:migrate

@nikophil nikophil changed the title feat: unfreeze dependencies after command fix: unfreeze dependencies after command Oct 3, 2025
@nikophil nikophil force-pushed the feat/unfroze-dependencies-after-command branch from e4ec2f3 to 458c7bf Compare October 3, 2025 16:34
@nikophil nikophil changed the title fix: unfreeze dependencies after command fix: unfreeze DependencyFactory after command Oct 3, 2025
@nikophil nikophil force-pushed the feat/unfroze-dependencies-after-command branch from 83a2951 to f7f8e8c Compare October 10, 2025 11:46
@nikophil
Copy link
Author

I fixed phpstan failures, which are due to a new phpstan version

@greg0ire
Copy link
Member

greg0ire commented Oct 11, 2025

It seems there are CI jobs failing. Please take a look at this guide for more on how to handle those.

Specifically this part

@nikophil nikophil force-pushed the feat/unfroze-dependencies-after-command branch from 63abad1 to d717a90 Compare October 11, 2025 07:56
@nikophil
Copy link
Author

cs fixed 👍

@nikophil nikophil requested a review from greg0ire October 11, 2025 07:56
@greg0ire
Copy link
Member

@goetas @VincentLanglet please review

@greg0ire greg0ire requested a review from goetas October 11, 2025 09:15
}
}

abstract protected function doExecute(InputInterface $input, OutputInterface $output): int;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introducing a new abstract function (to a class that is not internal) is a BC break, isn't it?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah you're right, I acted as this class was internal.

that's strange that roave-backward-compatibility-check workflow did not see it

I've made the method concrete, and it now directly throws an exception. I think this is not a BC anymore

@nikophil nikophil force-pushed the feat/unfroze-dependencies-after-command branch from d717a90 to 5f7cb42 Compare October 17, 2025 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants